import java.util.ArrayList;

/*Localization.java Loads localized strings from localization file
Copyright (C) 2013  Dmytro Kostiantynovskyi, HartLi

This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License along
with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.*/
public class Localization {
	private ArrayList<ArrayList<String>> lang = new ArrayList<ArrayList<String>>();
	
	public ArrayList<ArrayList<String>> getLang() {
		return lang;
	}

	public void loadLocalization(){
		ArrayList<String> arrSrcLang = FileReader.getConvertedToArrayWithIndexKey(Config.currentDirectory+Config.sep+Config.relativeInstallPath+Config.localizationDir+Config.language+".txt");
		
		for(int i=0; i<arrSrcLang.size(); i++){
			String[] arr = arrSrcLang.get(i).split(";");
			ArrayList<String> tempList = new ArrayList<String>();
			tempList.add(arr[0]);
			tempList.add(arr[1]);
			lang.add(i, tempList); 
		}
			
	}
}